package com.ixuea.courses.mycloudmusicapisp.domain.response;

import com.ixuea.courses.mycloudmusicapisp.domain.Base;

/**
 * 分页数据
 */
public class PageData extends Base {
    /**
     * 当前页
     */
    private Integer currentPage;

    /**
     * 总分页数
     */
    private Integer totalPages;

    /**
     * 总数量
     */
    private Integer totalCount;

    /**
     * 真实数据
     */
    private Object data;


    /**
     * 构造方法
     */
    public PageData() {

    }

    /**
     * 构造方法
     * @param data
     */
    public PageData(Object data) {
        this.data = data;
    }

    /**
     * 成功响应
     * @param data
     * @return
     */
    public static PageData init(Object data) {
        return new PageData(data);
    }


    public Integer getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }

    public Integer getTotalPages() {
        return totalPages;
    }

    public void setTotalPages(Integer totalPages) {
        this.totalPages = totalPages;
    }

    public Integer getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(Integer totalCount) {
        this.totalCount = totalCount;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
